# -*- coding: utf-8 -*-
# @Time    : 2021/9/9 12:20
# @Author  : BrandonGT
# @FileName: 3_8_seeing_the_world.py

place = [
    "san ya",
    "chang bai shan",
    "japan",
    "shanghai",
    "hu nan"
]

print(f"原来的排列顺序{place}")
print(f"sorted的排列顺序{sorted(place)}")
print(f"原来的排列顺序{place}")
print(f"sorted倒序的排列顺序{sorted(place, reverse=True)}")
print(f"原来的排列顺序{place}")
place.reverse()
print(f"倒序的排列顺序{place}")
place.reverse()
print(f"倒序的排列顺序{place}")
place.sort()
print(f"新的按字母大小的排列顺序{place}")
place.sort(reverse=True)
print(f"新的按字母大小的倒序的排列顺序{place}")
